﻿@using HWmanagementClient.Codes
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/start/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/start/jquery.ui.core.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/start/jquery.ui.accordion.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/start/jquery.ui.resizable.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/start/jquery.ui.selectable.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/start/jquery.ui.tabs.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>
    @*<script src="@Url.Content("~/Scripts/jquery.tmpl.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tmplPlus.js")" type="text/javascript"></script>*@
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
    <script>
        $(function () {
            $("input[type=submit]")
            .button();

            $("input[type=checkbox]")
            .button();

            $("input[id*=messagemodel]").css("width", "400px");
            $("textarea[id*=messagemodel]").css("width", "400px");

            $("a.buttonclass")
            .button();

            $("button")
            .button();
        });

        function showLoader() {
            $("#dialog-loader").dialog({
                modal: true,
                height: 360,
                width: 350
            });
        }

        function hideLoader() {
            $("#dialog-loader").dialog("close");
        }
    </script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>
                    Házi feladat beadó</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer" class="semmi">
                <ul id="menu">
                    @if (ViewBag.Rank == -1)
                    {
                        <li>@Html.ActionLink("Kezdőlap", "Index", "Home")</li>
                        <li>@Html.ActionLink("Névjegy", "About", "Home")</li>
                    }
                    else if (ViewBag.Rank == 2)
                    {
                        <li>@Html.ActionLink("Kezdőlap", "Index", "Home")</li>
                        <li>@Html.ActionLink("Leadás", "Index", "Student")</li>
                        <li>@Html.ActionLink("Értékelések", "Grades", "Student")</li>
                        <li>@Html.ActionLink("Üzenetküldés", "Index", "Message")</li>
                        <li>@Html.ActionLink("Névjegy", "About", "Home")</li>
                    }
                    else if (ViewBag.Rank == 1)
                    {
                        <li>@Html.ActionLink("Kezdőlap", "Index", "Home")</li>
                        <li>@Html.ActionLink("Kiírás", "Index", "Teacher")</li>
                        <li>@Html.ActionLink("Értékelés", "Grades", "Teacher")</li>
                        <li>@Html.ActionLink("Üzenetküldés", "Index", "Message")</li>
                        <li>@Html.ActionLink("Tárgyak", "Subjects", "Teacher")</li>
                        <li>@Html.ActionLink("Névjegy", "About", "Home")</li>
                    }
                    <li>@Html.ActionLink("?? Admin ??", "Admin", "Home")</li>
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="dialog-loader" title="Feldolgozás..." style="display: none;">
        <img src="../../Content/loading.gif" />
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
